$OpenBSD: patch-src_tests_Makefile_am,v 1.1 2016/06/07 14:08:44 dcoppa Exp $
--- src/tests/Makefile.am.orig	Tue Jun  7 15:09:43 2016
+++ src/tests/Makefile.am	Tue Jun  7 15:10:08 2016
@@ -10,7 +10,8 @@ AM_CPPFLAGS = -I$(top_srcdir)/src
 LIBS = \
 	$(top_builddir)/src/libopensc/libopensc.la \
 	$(top_builddir)/src/common/libscdl.la \
-	$(top_builddir)/src/common/libcompat.la
+	$(top_builddir)/src/common/libcompat.la \
+	-lpthread
 
 COMMON_SRC = sc-test.c
 COMMON_INC = sc-test.h
